﻿using Microsoft.AspNetCore.Mvc;
using NP.BPMReportPlatform.Reports.YHSQ.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace NP.BPMReportPlatform.Reports.POCAP
{
    //[Authorize]
    [ApiController]
    [Route("api/Reports/POCAP")]
    public class POCAPController: BPMReportPlatformController
    {
        private readonly IPOCAPService _service;
        public POCAPController(IPOCAPService service)
        {
            _service = service;
        }

        /// <summary>
        /// 解锁单据锁定
        /// </summary>
        /// <param name="instanceNumber"></param>
        /// <returns></returns>
        [HttpGet("PWSCodeUnlock")]
        public async Task<string> GetAll([FromQuery] string instanceNumber)
        {
            return await _service.PWSCodeUnlock(instanceNumber);
        }
    }
}
